// vp_cai/pages/index/areas.js
var app = getApp();
var vp = require('../../resource/js/vp.js');
Page({
	data:{
		family_promo_image:''
	},
	onLoad() {
		var self=this;
		app.mdInit(function (cfg,mine,area) {
			self.setData({
				cfg: cfg,
				mine:mine,
				area:area,
				main_loaded:true,
				family_promo_image:cfg.family_promo_image_url
			});		
		});
		
	},
  // 跳转开通页面
  goToSubscribe: function() {
    wx.navigateTo({
      url: '/vp_pz/pages/familydoctor/subscribe'
    });
  },
  
  // 返回上一页
  navigateBack: function() {
    wx.navigateBack();
  }
});